package com.java.atm.Test;

import com.java.atm.Server.Server;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;

class ServerTest
{
    @Test
    void connectDB()
    {
        Server server = new Server();
        if( server.connectDB() )
        {
            System.out.println("数据库连接成功");
        }
        else
        {
            System.out.println("数据库连接失败,请检查是否设置正确");
            return;
        }
    }

}